import filterXSS from 'xss';
filterXSS.whiteList['input'] = ['type', 'src', 'disabled', 'checked', 'class'];
filterXSS.whiteList['img'] = ['src', 'alt', 'title', 'width', 'max-width', 'style', 'height'];
filterXSS.whiteList['math'] = [];
filterXSS.whiteList['semantics'] = [];
filterXSS.whiteList['mrow'] = [];
filterXSS.whiteList['mtext'] = [];
filterXSS.whiteList['annotation'] = ['encoding'];
filterXSS.whiteList['msub'] = [];
filterXSS.whiteList['mi'] = [];
filterXSS.whiteList['mo'] = [];
filterXSS.whiteList['mn'] = [];
filterXSS.whiteList['li'] = ['class'];
filterXSS.whiteList['span'] = ['class', 'title', 'aria-hidden', 'style'];
filterXSS.whiteList['code'] = [];
filterXSS.whiteList['li'] = ['class', 'id'];
filterXSS.whiteList['td'] = ['style', 'class'];
filterXSS.whiteList['p'] = ['style', 'class'];
filterXSS.whiteList['div'] = ['style', 'class'];
filterXSS.whiteList['a'] = ['style', 'class', 'id', 'target', 'href', 'title'];
filterXSS.stripIgnoreTag = true;
const xss = {
  install(Vue, options) {
    Vue.prototype.$xss = filterXSS;
  }
};
export default xss;
